<template>
    <div class="Set">
        <span class="setTitle"
            v-text="setTitle" />
        <hb-button2 class="doset cur"
            :txt="doset"
            @clk="e_page(gopath)" />
    </div>
</template>

<script>
export default {
	name: 'Set',
	props: {
		setTitle: {
			default: '',
		},
		doset: {
			default: '',
		},
		gopath: {
			default: '',
		},
		//类型 1：银行卡 ; 2:支付宝/微信;
		type:{
			default:1
		},
		id:{
			default:0
		}
	},
	methods: {
		e_page(s) {
			if(this.gopath=='selfset'){
				this.$emit('update',this.id,this.type)
			}else{
				this.$router.push(`/${s}`)
			}
			
		},
	},
}
</script>

<style scoped>
.Set {
	height: 30px;
	display: flex;
	justify-content: space-between;
	padding: 0 29px;
	line-height: 30px;
}
.setTitle {
	font-size: 14px;
	color: #7a98f7;
}
.doset {
	font-size: 14px;
	color: #7a98f7;
}
</style>
